<?php

use yii\db\Migration;

/**
 * Class m171222_081820_add_column_price_to_package_initiation_table
 */
class m171222_081820_add_column_price_to_package_initiation_table extends Migration
{
    /**
     * @inheritdoc
     */
    public function safeUp()
    {
        //$this->addColumn('project', 'rsync_sh', Schema::TYPE_STRING . '(200) DEFAULT "" COMMENT "执行sh脚本名称"');
        $this->addColumn('package_initiation','price',$this->string()->comment('当前卖方报价/预估售价（元）'));//COMMENT "当前卖方报价/预估售价（元）
    }

    /**
     * @inheritdoc
     */
    public function safeDown()
    {
        echo "m171222_081820_add_column_price_to_package_initiation_table cannot be reverted.\n";

        return false;
    }

    /*
    // Use up()/down() to run migration code without a transaction.
    public function up()
    {

    }

    public function down()
    {
        echo "m171222_081820_add_column_price_to_package_initiation_table cannot be reverted.\n";

        return false;
    }
    */
}
